package com.jic.market.api.rest;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.request.manager.lottery.LotteryActivityRequest;
import com.jic.market.request.rest.lottery.LotteryActivityInfoRestRequest;
import com.jic.market.request.rest.lottery.LotteryReceiverRequest;
import com.jic.market.request.rest.lottery.WinningRecordsRestRequest;
import com.jic.market.response.rest.lottery.LotteryActivityInfoRestResponse;
import com.jic.market.response.rest.lottery.LotteryAwardsRestResponse;
import com.jic.market.response.rest.lottery.LotteryDrawRestResponse;
import com.jic.market.response.rest.lottery.LotteryWinningRecordsResponse;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author: MJ
 * @date: 2020-04-07
 * @remark: 抽奖活动api
 */
public interface LotteryRestApi {
    /**
     * 抽奖奖项信息
     * @param request
     * @return
     */
    RestResult<LotteryActivityInfoRestResponse> getLotteryAwardsList(LotteryActivityInfoRestRequest request);


    /**
     * 抽奖动作
     * @param request
     * @return
     */
    RestResult<LotteryDrawRestResponse> drawLottery (LotteryActivityInfoRestRequest request);

    /**
     * 我的中奖记录
     * @param request
     * @return
     */
    RestResult<PageResult<LotteryWinningRecordsResponse>> winningRecord(WinningRecordsRestRequest request);

    /**
     *
     * @param request
     * @return
     */
    RestResult<String> saveReceiverAddress(LotteryReceiverRequest request);
}
